package com.cdream.basic.spring.factorybean.circle;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author cdream
 * @date 2021/10/29
 */
@Component
public class TestB {
    @Autowired
    private TestA testA;

    public void sayA(){
        testA.say();
    }
    public void say(){
        System.out.println("说了一句花样");
    }
}
